import { IFrameworkUser } from '/@/views/fileattachment/api/interface';

export interface ISysPurchaseRequirementPool {
	ID?: string | null;
	Name: string | null;
	Code: string | null;
	TotalAmount: number | null;
	UrgentCount: number;
	State?: '启用' | '禁用' | '废弃' | null;
	IsDefault: boolean;
	PurchaserInChargeId: null;
	PurchaserInCharge?: IFrameworkUser;
	Remark: string | null;
	MaterialGroups: string | null;
	Managers: string | null;
}

export interface ISysPurchaseRequirementPoolVm {
	Entity: ISysPurchaseRequirementPool;
	ActionName?: string | null;
	IsMyApprove?: boolean | null;
	SelectedMaterialGroupsIds: string[];
	SelectedManagersIds: string[];
}

export interface ISysPurchaseRequirementPoolView extends ISysPurchaseRequirementPool {
	MaterialGroupsNames: string[];
	ManagersNames: string[];

}

export interface ISysPurchaseRequirementPoolQuery {
	Name?: string | null;
	Code?: string | null;
	State?: number | null;
	IsDefault?: boolean | null;
}